package com.sany.assess.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author fenglf
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EVA_ORG")
@ApiModel(value = "Org对象", description = "")
public class Org extends Model<Org> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键组织ID")
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private String id;

    @ApiModelProperty(value = "组织(部门)中文名称")
    @TableField("ORG_TEXT")
    private String orgText;

    @ApiModelProperty(value = "组织(部门)代码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "组织(部门)英文名称")
    @TableField("ORG_TEXT_EN")
    private String orgTextEn;

    @ApiModelProperty(value = "上级组织(部门)ID")
    @TableField("FATHER_ID")
    private String fatherId;

    @ApiModelProperty(value = "组织(部门)级别")
    @TableField("ORG_LEVEL")
    private String orgLevel;

    @ApiModelProperty(value = "是否有效")
    @TableField("USE_FLAG")
    private String useFlag;

    @ApiModelProperty(value = "组织(部门)排序号")
    @TableField("ORG_RANK")
    private String orgRank;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
